/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: a1227
 * Date: 2022-07-22
 * Time: 16:42
 */
public class SingleLinkedList {
    public static void main(String[] args) {
        MySingleLinkedList mySingleLinkedList = new MySingleLinkedList();
        mySingleLinkedList.addLast(2);
        mySingleLinkedList.addLast(1);
        mySingleLinkedList.addLast(2);
        mySingleLinkedList.addLast(1);
        mySingleLinkedList.addLast(1);
        mySingleLinkedList.display();
        mySingleLinkedList.clear();
        mySingleLinkedList.display();
    }
}
